package com.jrx.anytxn.param.mapper.ext;

import com.jrx.anytxn.param.entity.TlCouponSummary;
import com.jrx.anytxn.param.mapper.base.TlCouponSummaryMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 优惠券发放汇总mapper扩展
 */
public interface ExtTlCouponSummaryMapper extends TlCouponSummaryMapper{

    /**
     * 根据租户查询优惠券发放汇总信息
     * @param tenantId
     * @return
     */
    List<TlCouponSummary> selectByTenantId(@Param("tenantId") String tenantId);

    /**
     * 根据id 租户ID查询
     * @param id
     * @param tenantId
     * @return
     */
    TlCouponSummary selectByIdAndTenantId(@Param("id") Long id,@Param("tenantId") String tenantId);

}
